package homework.singleton.teting;

import homework.singleton.coding.EarthSingleton;

public class Test {
    public static void main(String[] args) {
        EarthSingleton earthSingleton=EarthSingleton.getEarth();
        EarthSingleton earthSingleton2=EarthSingleton.getEarth();
        EarthSingleton earthSingleton3=EarthSingleton.getEarth();
        System.out.println(earthSingleton.equals(earthSingleton2));

        earthSingleton3.setTemp(333);
        System.out.println(earthSingleton.getTemp());
        System.out.println(earthSingleton2.getTemp());
        System.out.println(earthSingleton3.getTemp());

    }
}
